EMT Practice Test

1. Question Content...


Question List

Question1: What is true about the file /etc/localtime?

Question2: Which of the following commands will convert files from one character encoding to another?

Question3: Which command makes the shell variable named VARIABLE visible to subshells?

Question4: What is true regarding the file ~/.forward?

Question5: Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

Question6: Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Question7: Given the following routing table:

Why does the command route add default gw 192.168.1.1fail?

Question8: What is the purpose of the nsswitch.conf file?

Question9: Which of the following are syslog facilities? (Choose TWO correct answers.)

Question10: Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Question11: Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Question12: What is NOT contained in the locale setting of the operating system?

Question13: What is true regarding a default route?

Question14: How does the ping command work by default?

Question15: Which of the following commands creates a function in Bash that outputs the sum of two numbers?

Question16: Which file used by XDM specifies the default wallpaper?

Question17: Which command can be used to delete a group from a Linux system?

Question18: When issuing the command ifconfig eth0 192.168.1.20/24up, which of the following happens?
(Choose two correct answers.)

Question19: Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

Question20: What is the purpose of a screen reader?

Question21: On a machine running several X servers, how are the different instances of the X11 server identified?

Question22: Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Question23: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question24: Which file contains the date of the last change of a user's password?

Question25: What is true about UIDs and GIDs?

Question26: Each entry in a crontab must end with what character?

Question27: Which environment variable will override all LC_* variables?

Question28: What is the purpose of the command mailq?

Question29: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question30: How can the existing environment variable FOOBAR be suppressed for the execution of the script./ myscript only?

Question31: What is true regarding the statement beginning with #! That is found in the first line of a script?

Question32: Which of the following statements is valid in the file /etc/nsswitch.conf?

Question33: Which of the following are operators used for comparison by the test command? (Choose two correct answers.)

Question34: What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

Question35: What is the purpose of the iconv command?

Question36: Which configuration file would be edited to change the default options for outbound SSH sessions?

Question37: What output will the command seq 10 produce?

Question38: Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Question39: Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Question40: Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

Question41: What is true about groups in a Linux system? (Choose two correct answers.)

Question42: Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Question43: Which of the following commands prints the exit value of the most recently executed program in Bash?

Question44: Which of the following commands lists all defined variables and functions within Bash?

Question45: Which of the following details can be found in an entry of a user specific crontab? (Choose two correct answers.)

Question46: When the command echo $$ outputs 12942, what is the meaning of 12942?

Question47: Which of the following details is NOT provided in any output from the netstat utility?

Question48: Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

Question49: Which configuration file would be edited to change default options for the OpenSSH server?

Question50: Which of the following actions prevents a specific user form scheduling tasks using at or batch?

Question51: On a regular users workstation the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?

Question52: Which file, when using Sendmail or a compatible MTA system, will allow a user to redirect all of their mail to another address and is configurable by the user themselves?

Question53: In order to discover the link layer address of the device that owns a specific IPv4 or IPv6 address, which mechanism is used?

Question54: Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Question55: In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Question56: Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Question57: What is the main difference between the batchand atcommands?

Question58: Which of the following commands will help identify a broken router between the local and the remote machine?

Question59: What is the difference between the commands test -e path and test -f path?

Question60: Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Question61: Which of the following is observed and corrected by a NTP client?

Question62: Which of the following find commands will print out a list of files owned by root and with the SUID bit set in / usr?

Question63: Which of the following commands lists all queued print jobs?

Question64: Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Question65: Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Question66: Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

Question67: What is the purpose of the dig command?

Question68: Which of the following commands can remove a user from a group?

Question69: Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Question70: What is a purpose of an SSH host key?

Question71: To prevent a specific user from scheduling tasks with at, what should the administrator do?

Question72: Which of the following commands is used to rotate, compress, and mail system logs?

Question73: What output will the following command produce?
seq 1 5 20

Question74: Which of the following programs can be used to determine the routing path to a given destination?

Question75: Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

Question76: Which of the following is a valid IPv6 address?

Question77: Which Bash option prevents a user from accidentally overwriting a file with a ">"?

Question78: What is true about the ntpdate command?

Question79: With syslog, what is a facility?

Question80: When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

Question81: Which of the following files is consulted when programs like netstat try to match port numbers to names?

Question82: What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Question83: Which of the following commands shows the current color depth of the X Server?

Question84: Which of the following are valid IPv4 network masks? (Choose two correct answers.)

Question85: What is true regarding TCP port 23?

Question86: Which of the following files assigns a user to its primary group?

Question87: Which of the following commands puts the output of the command date into the shell variable mydate?

Question88: What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Question89: Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Question90: Which of the following is true about IPv6?

Question91: How is a display manager started?

Question92: After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

Question93: Depending on the host's configuration, which of the following files can be used to turn on and off network services running on a host? (Choose two.)

Question94: What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Question95: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

Question96: Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

Question97: Why is the correct configuration of a system's time zone important?

Question98: Which of the following commands pauses the Cups printer LaserPrinter?

Question99: Which command will set the local machine's timezone to UTC?

Question100: Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Question101: What is the purpose of the file /etc/profile?

Question102: For accessibility assistance, which of the following programs is an on-screen keyboard?

Question103: Which file inside the CUPS configuration directory contains the definition of the printers?

Question104: What is true regarding the command sendmail?

Question105: The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Question106: Which of the following steps prevents a user from obtaining an interactive login session?